const qs = require("querystring");
console.log(qs)

const str1 = "username=admin&password=123456&tel=17600901915";
console.log( qs.parse(str1) );

const str2 = "username=admin; password=123456; tel=17600901915";
console.log( qs.parse(str2, "; ") );

const obj = {
  username: 'admin',
  password: '123456',
  tel: '17600901915'
}
console.log( qs.stringify(obj) )




// 将中文转码
console.log( qs.escape("上海") );
// 转成中文
console.log( qs.unescape("%E4%B8%8A%E6%B5%B7") );

